@extends('admin.app')


@section('content')
    <div class="panel panel-default">
        <div class="panel-heading font-bold">
            项目类型列表
        </div>
        <div class="row wrapper">
            <div class="col-sm-10">
                <form class="form-horizontal" method="get"
                      action="{{ admin_action('Web\CooController@userInvestInfo') }}">
                    <div class="row">
                        <div class="col-sm-11">
                            
                        </div>
                        <div class="col-sm-1 text-left">
                    <!-- <span class="input-group-btn">
                      <button class="btn btn-sm btn-default" type="submit">查询</button>
                    </span> -->
                    <span class="input-group-btn">
                    </span>
                        </div>
                    </div>
                </form>
            </div>
            <div class="col-sm-2 text-right text-center-xs">
                    <a href="{{ admin_action('Web\CooController@userInvestCount',['download'=>'download']) }}" class="btn btn-sm btn-primary btn-addon">
                        <i class="fa fa-download"></i>excel导出查询结果
                    </a>
            </div>
        </div>
        <div class="table-responsive">
            <table class="table table-striped b-t b-light">
                <thead>
                <tr>
                    <th>营销机构</th>
                    <th>经纪人ID</th>
                    <th>经纪人名称</th>
                    <th>投资人ID</th>
                    <th>投资人姓名</th>
                    <th>手机号码</th>
                    <th>身份证</th>
                    <th>注册时间</th>
                    <th>邮箱</th>
                    <th>总投资金额</th>
                    <th>投资次数</th>
                    <th>最后登陆时间</th>
                </tr>
                </thead>
                <tbody>
                @forelse ($data as $d)
                    <tr>
                    	<td>{{ $d->company_name??'--' }}</td>
                    	<td>{{ $d->broker_id??'--' }}</td>
                    	<td>{{ $d->broker_name??'--' }}</td>
                    	<td>{{ $d->user_id??'--' }}</td>
                    	<td>{{ $d->name??'--' }}</td>
                    	<td>{{ $d->phone_number??'--' }}</td>
                    	<td>{{ $d->id_card??'--' }}</td>
                    	<td>{{ $d->created_at??'--' }}</td>
                    	<td>{{ $d->email??'--' }}</td>
                    	<td>{{ $d->invest_money_count??'--' }}</td>
                    	<td>{{ $d->invest_count??'--' }}</td>
                    	<td>{{ $d->last_login_at??'--' }}</td>
                    </tr>
                @empty
                    <tr>
                        <td colspan="3" class="text-center">没有找到项目类型记录</td>
                    </tr>
                @endforelse
                </tbody>
            </table>
        </div>
        <div class="panel-footer">
            <div class="row">
                <div class="col-sm-12 text-right text-center-xs">
                    {!! $links !!}
                </div>
            </div>
        </div>
    </div>
@endsection